Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix triggering clippy::mem_forget lint in exported structs #3985

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

daxpedda
Copy link
Collaborator

I think its fine to explicitly allow certain lints.

Fixes #3944.

@@ -31,6 +33,7 @@ pub mod final_;
pub mod futures;
pub mod gc;
pub mod getters_and_setters;
pub mod ignore;
Copy link
Collaborator Author

@daxpedda daxpedda Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missed back when it was added, its unrelated to this PR.

@@ -473,7 +473,7 @@ fn drop_during_call_ok() {
assert_eq!(x, 3);

// make sure `A` is bound to our closure environment.
drop(&a);
let _a = &a;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small improvement.
Also unrelated to this PR.

Copy link
Collaborator

@Liamolucko Liamolucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, we don't really need a general solution for what seems to be an isolated issue. We can always reconsider this later on if lots more issues like this show up.

@daxpedda daxpedda merged commit 3f6c7c6 into rustwasm:main Jun 16, 2024
25 checks passed
daxpedda added a commit to daxpedda/wasm-bindgen that referenced this pull request Jun 19, 2024
ivan-aksamentov added a commit to nextstrain/nextclade that referenced this pull request Oct 14, 2024
tsibley pushed a commit to nextstrain/nextclade that referenced this pull request Oct 15, 2024
tsibley pushed a commit to nextstrain/nextclade that referenced this pull request Oct 15, 2024
tsibley added a commit to nextstrain/nextclade that referenced this pull request Oct 16, 2024
…L trust store

Previously, the platform's trust store was ignored in favor of a baked
in and unconfigurable trust store provided by webpki-roots.  Now the
reqwest trust store will contain both certs obtained from the platform
at run time as well as certs baked in via webpki-roots.

Obtaining certs from the platform means that Nextclade will respect
OS-level configuration to trust private CAs / self-signed certs.
Keeping webpki-roots for all platforms is a precaution that makes this
change merely additive for backwards compatibility, in case of platforms
which lack a trust store (like some Linux containers) or platforms with
out-of-date trust stores.  It means that Nextclade binaries should
continue to Just Work™.

reqwest uses rustls-native-roots to obtain trusted CA certificates from
the standard trust stores for the OS/platform.  See the crate's
documentation for details on each platform.¹  Notably, this does not use
the platform's standard certificate verification methods like
rustls-platform-verifier; it just extracts certificates.  We may in the
future want to switch to rustls-platform-verifier (ourselves or by
waiting for reqwest to do so).

Updates reqwest because an earlier (but problematic and now reverted²)
change did so and there were some public API changes I'd like to use.
Updates wasm-bindgen as necessary for the newer reqwest (≥0.2.89) and
then a little further (0.2.93) to avoid Clippy warnings.³

¹ <https://docs.rs/crate/rustls-native-certs/0.8.0>
² <#1529 (comment)>.
³ <rustwasm/wasm-bindgen#3985>

Resolves: <#726>
Related-to: <#1529>
Related-to: <#1527>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wasm-bindgen 0.2.92 triggers clippy::mem_forget
2 participants